(function() {
	var basePath="";
    var scripts = document.getElementsByTagName("script");
    for (var i = scripts.length; i > 0; i--) {
    	var index = scripts[i - 1].src.lastIndexOf("accordion.js");
        if (index > -1) {
            basePath = scripts[i - 1].src.substring(0, index);
            break;
        }
    }
    document.writeln("<link rel='stylesheet' type='text/css' href='"+ basePath + "/accordion.css'/>");
	document.writeln("<script type='text/javascript' src='"+ basePath + "/jquery-ui-1.8.18.custom.min.js'></script>");
})();
